/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Transdermal Patch</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S14500 (C-0-T19651-A14411-A14412-A14484-S14499-S14500-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getTransdermalPatch()
 * @model extendedMetaData="name='TransdermalPatch'"
 * @generated
 */
public enum TransdermalPatch implements Enumerator {
	/**
	 * The '<em><b>TPATCH</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TPATCH_VALUE
	 * @generated
	 * @ordered
	 */
	TPATCH(0, "TPATCH", "TPATCH"),

	/**
	 * The '<em><b>TPATH16</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TPATH16_VALUE
	 * @generated
	 * @ordered
	 */
	TPATH16(1, "TPATH16", "TPATH16"),

	/**
	 * The '<em><b>TPATH24</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TPATH24_VALUE
	 * @generated
	 * @ordered
	 */
	TPATH24(2, "TPATH24", "TPATH24"),

	/**
	 * The '<em><b>TPATH72</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TPATH72_VALUE
	 * @generated
	 * @ordered
	 */
	TPATH72(3, "TPATH72", "TPATH72"),

	/**
	 * The '<em><b>TPATH2WK</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TPATH2WK_VALUE
	 * @generated
	 * @ordered
	 */
	TPATH2WK(4, "TPATH2WK", "TPATH2WK"),

	/**
	 * The '<em><b>TPATHWK</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TPATHWK_VALUE
	 * @generated
	 * @ordered
	 */
	TPATHWK(5, "TPATHWK", "TPATHWK");

	/**
	 * The '<em><b>TPATCH</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TPATCH</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TPATCH
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TPATCH_VALUE = 0;

	/**
	 * The '<em><b>TPATH16</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TPATH16</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TPATH16
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TPATH16_VALUE = 1;

	/**
	 * The '<em><b>TPATH24</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TPATH24</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TPATH24
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TPATH24_VALUE = 2;

	/**
	 * The '<em><b>TPATH72</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TPATH72</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TPATH72
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TPATH72_VALUE = 3;

	/**
	 * The '<em><b>TPATH2WK</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TPATH2WK</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TPATH2WK
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TPATH2WK_VALUE = 4;

	/**
	 * The '<em><b>TPATHWK</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TPATHWK</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TPATHWK
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TPATHWK_VALUE = 5;

	/**
	 * An array of all the '<em><b>Transdermal Patch</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final TransdermalPatch[] VALUES_ARRAY =
		new TransdermalPatch[] {
			TPATCH,
			TPATH16,
			TPATH24,
			TPATH72,
			TPATH2WK,
			TPATHWK,
		};

	/**
	 * A public read-only list of all the '<em><b>Transdermal Patch</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<TransdermalPatch> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Transdermal Patch</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TransdermalPatch get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			TransdermalPatch result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Transdermal Patch</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TransdermalPatch getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			TransdermalPatch result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Transdermal Patch</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TransdermalPatch get(int value) {
		switch (value) {
			case TPATCH_VALUE: return TPATCH;
			case TPATH16_VALUE: return TPATH16;
			case TPATH24_VALUE: return TPATH24;
			case TPATH72_VALUE: return TPATH72;
			case TPATH2WK_VALUE: return TPATH2WK;
			case TPATHWK_VALUE: return TPATHWK;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private TransdermalPatch(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //TransdermalPatch
